package com.shuiyun.jtt.utils;

import com.shuiyun.jtt.handler.Handler;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author shuiyun
 * @program simulator
 * @description 缓存信息
 * @date 2022-04-19 15:48
 **/
public enum SessionKey {

    // 单例
    instance;

    /**
     * 缓存所有的消息ID和实体的映射信息
     */
    @Getter
    private final Map<Integer, Class<?>> messageMap = new HashMap<>();

    @Getter
    private final Map<Integer, Handler> handlerMap = new HashMap<>();

}
